//
//  YCMainView.m
//  YCAdapterMode
//
//  Created by 安跃超 on 2018/12/14.
//  Copyright © 2018年 安跃超. All rights reserved.
//

#import "YCMainView.h"
#import "YCMainTabBarItem.h"

@implementation YCMainView

- (instancetype)initWithFrame:(CGRect)frame {

    if (self = [super initWithFrame:frame]){
        [self setup];
    }
    return self;
}

- (void)setup{
    self.translucent = NO;

}

- (void)setDataArr:(NSMutableArray<YCMainViewAdapter *> *)dataArr {
    _dataArr = dataArr;
    [self loadTabbar];
}

- (void)loadTabbar {
    for (int i = 0; i< self.dataArr.count; i ++) {
        YCMainTabBarItem *item = [YCMainTabBarItem new];
//        UITabBarItem *item = self.items[i];
//        item.title = [self.dataArr[i] titleString];
//        item.image = [UIImage imageNamed:[self.dataArr[i] iconNameString]];
//        item.selectedImage = [UIImage imageNamed:[self.dataArr[i] iconSelectNameString]];
//        [item setTitleTextAttributes:[self.dataArr[i] attributeNomal] forState:UIControlStateNormal];
//        [item setTitleTextAttributes:[self.dataArr[i] attributeSelect] forState:UIControlStateSelected];
    }
}

@end
